//
//  IpInputViewController.h
//  Dolphin
//
//  Created by alex tao on 3/31/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^EndBlock)();

@interface IpInputViewController : UIViewController {
    
    IBOutlet UITextField *                  _ipText;
    IBOutlet UITextField *                  _portText;
    
    EndBlock                                _block;
    
}

@property (nonatomic, copy) EndBlock            block;

+ (BOOL)isIPAddress:(NSString*)address;
- (IBAction)okClicked;

@end
